package org.jeecg.modules.demo.crm.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.demo.crm.annotation.FileField;
import org.jeecg.modules.demo.crm.annotation.TitleField;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 开票申请
 * @Author: jeecg-boot
 * @Date:   2025-06-23
 * @Version: V1.0
 */
@Data
@TableName("c_invoice_apply_ask")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="c_invoice_apply_ask对象", description="开票申请")
public class CInvoiceApplyAsk implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**开票状态*/
    @ApiModelProperty(value = "开票状态")
	@Excel(name = "发票类型", width = 15, dicCode = "Invoicestatus")
    private String status;
	/**项目ID*/
	@Excel(name = "项目ID", width = 15, dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目ID")
    private String projectId;
	/**子项目*/
	@Excel(name = "子项目", width = 15, dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
	@Dict(dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
    @ApiModelProperty(value = "子项目")
    private String subProjectId;
	/**项目名称*/
	@Excel(name = "申请标题项目名称", width = 15)
	@ApiModelProperty(value = "申请标题项目名称")
	@TitleField // AOP 监听文件数据，存入文件表
	private String title;

	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
    private String projectName;
	/**税额*/
	@Excel(name = "税额", width = 15)
    @ApiModelProperty(value = "税额")
    private BigDecimal taxAmount;
	/**开票人姓名*/
	@Excel(name = "开票人姓名", width = 15)
    @ApiModelProperty(value = "开票人姓名")
    private String invoicer;
	/**税率*/
	@Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    private BigDecimal taxRate;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private BigDecimal amount;
	/**发票类型*/
	@Excel(name = "发票类型", width = 15, dicCode = "InvoiceType")
	@Dict(dicCode = "InvoiceType")
    @ApiModelProperty(value = "发票类型")
    private String invoiceType;
	/**发票的备注信息*/
	@Excel(name = "发票的备注信息", width = 15)
    @ApiModelProperty(value = "发票的备注信息")
    private String remarks;
	/**销售方名称*/
	@Excel(name = "销售方名称", width = 15)
    @ApiModelProperty(value = "销售方名称")
    private String sellerName;
	/**销售方的统一社会信用代码或纳税人识别号*/
	@Excel(name = "销售方的统一社会信用代码或纳税人识别号", width = 15)
    @ApiModelProperty(value = "销售方的统一社会信用代码或纳税人识别号")
    private String sellerTaxId;
	/**购买方名称*/
	@Excel(name = "购买方名称", width = 15)
    @ApiModelProperty(value = "购买方名称")
    private String buyerName;
	/**购买方的统一社会信用代码或纳税人识别号*/
	@Excel(name = "购买方的统一社会信用代码或纳税人识别号", width = 15)
    @ApiModelProperty(value = "购买方的统一社会信用代码或纳税人识别号")
    private String buyerTaxId;
	/**审核人*/
	@Excel(name = "审核人", width = 15, dictTable = "sys_user", dicText = "username", dicCode = "id")
	@Dict(dictTable = "sys_user", dicText = "username", dicCode = "id")
    @ApiModelProperty(value = "审核人")
    private String reviewerUserId;
	/**审核时间*/
	@Excel(name = "审核时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核时间")
    private Date reviewTime;
	/**审核描述*/
	@Excel(name = "审核描述", width = 15)
    @ApiModelProperty(value = "审核描述")
    private String reviewDescription;
	/**提交人*/
	@Excel(name = "提交人", width = 15, dictTable = "sys_user", dicText = "username", dicCode = "id")
	@Dict(dictTable = "sys_user", dicText = "username", dicCode = "id")
    @ApiModelProperty(value = "提交人")
    private String submitterUserId;
	/**提交时间*/
	@Excel(name = "提交时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "提交时间")
    private Date submissionTime;
	/**财务人*/
	@Excel(name = "财务人", width = 15, dictTable = "sys_user", dicText = "username", dicCode = "id")
	@Dict(dictTable = "sys_user", dicText = "username", dicCode = "id")
    @ApiModelProperty(value = "财务人")
    private String financialUserId;
	/**财务审核时间*/
	@Excel(name = "财务审核时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "财务审核时间")
    private Date financialTime;
	/**开票记录id*/
	@Excel(name = "开票记录id", width = 15, dictTable = "c_invoice_apply", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "c_invoice_apply", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "开票记录id")
    private String applyId;
	/**建筑服务发生地*/
	@Excel(name = "建筑服务发生地", width = 15)
    @ApiModelProperty(value = "建筑服务发生地")
    private String buildingAdd;
	/**建筑项目名称*/
	@Excel(name = "建筑项目名称", width = 15)
    @ApiModelProperty(value = "建筑项目名称")
    private String buildingName;
	/**附件*/
	@Excel(name = "附件", width = 15)
	@ApiModelProperty(value = "附件")
	@FileField // AOP 监听文件数据，存入文件表
	private String appendix;
	/**开票主体--总包信息*/
	@Excel(name = "开票主体--总包信息", width = 15, dictTable = "company_info", dicText = "company_name", dicCode = "id")
	@Dict(dictTable = "company_info", dicText = "company_name", dicCode = "id")
    @ApiModelProperty(value = "开票主体--总包信息")
    private String companyId;
	/**收票主体--发包商*/
	@Excel(name = "收票主体--发包商", width = 15, dictTable = "c_contracting_unit", dicText = "name", dicCode = "id")
	@Dict(dictTable = "c_contracting_unit", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "收票主体--发包商")
    private String contractingId;
}
